package com.nickandted.sandbox.springws.elements;

import javax.xml.bind.annotation.*;

@XmlRootElement(name="GetPersonResponse", namespace="http://bar.foo")
@XmlType(name="", propOrder={"name", "age"})
@XmlAccessorType(XmlAccessType.FIELD)
public class GetPersonResponse {

    @XmlElement(name="name", namespace="http://bar.foo")
    private FullName name;

    @XmlElement(name="age", namespace="http://bar.foo")
    private int age;


    public GetPersonResponse(FullName name, int age) {
        this.name = name;
        this.age = age;
    }

    public GetPersonResponse() {
        this.name = new FullName();
        this.age = 0;
    }

    public FullName getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}
